import Mock from 'mockjs'
import projectApis from './modules/project'
import partyAApis from './modules/partyA'
import liaisonApis from './modules/liaison'
import materialApis from './modules/material'
import projectMaterialApis from './modules/projectMaterial'
import projectTaskApis from './modules/projectTask'
import projectFileApis from './modules/projectFile'
import colorApis from './modules/color'


const allApi = [
  ...projectApis,
  ...partyAApis,
  ...liaisonApis,
  ...materialApis,
  ...projectMaterialApis,
  ...projectTaskApis,
  ...projectFileApis,
  ...colorApis,
]
// Mock.mock(/\/graphData/, 'get', options => {
//     return { code: 200, data: 1, success: 200 }
// })

for (let api of allApi) {
  // Mock.mock(api.url, api.method, api.result)
  Mock.mock(api.url, api.method, api.result)
}


